package com.ponhu.ea2.dto;

import com.ponhu.ea2.support.validation.annotions.ValidateExpression;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@ApiModel("云商商品审核信息")
@ValidateExpression(expression = "(checkStatus >=1 and checkStatus <=2)", message = "审核状态必须为1-2")
public class CloudTradeGoodsCheckDto implements Serializable {

    private static final long serialVersionUID = 3496263346019177751L;

    @NotNull(message = "云商商品ID不能为空")
    @ApiModelProperty(value = "云商商品ID", required = true)
    private Long id;
    @ApiModelProperty(value = "审核状态(1:审核通过；2:审核不通过)", required = true)
    private Integer checkStatus;
    @ApiModelProperty(value = "审核原因")
    private String reason;
    @NotEmpty(message = "操作人不能为空")
    @ApiModelProperty(value = "操作人", required = true)
    private String operator;
    @NotNull(message = "操作人ID不能为空")
    @ApiModelProperty(value = "操作人ID", required = true)
    private Long operatorId;

}
